package com.example.springbootmybatis;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//用于标注一个主程序类，说明这是一个spring boot应用
@SpringBootApplication
@ServletComponentScan
public class SpringbootMybatisApplication {
    public static Logger logger = LoggerFactory.getLogger(SpringbootMybatisApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(SpringbootMybatisApplication.class, args);
        logger.debug("Debugging log");
        logger.info("Info log");
        logger.warn("Hey, This is a warning!");
        logger.error("Oops! We have an Error. OK");
        // logger.fatal("Damn! Fatal error. Please fix me.");
    }
}
